
<a class="menu-toggler" id="menu-toggler" href="#">
	<span class="menu-text"></span>
</a>
<div class="sidebar sidebar-fixed scrollbarLeft" style="overflow:hidden;" id="sidebar">

	<div class="sidebar-shortcuts" id="sidebar-shortcuts">
		<a class="btn btn-sm btn-warning" href="/" title="网站首页" >
			<i class="fa fa-home"></i>
		</a>

		<a class="btn btn-sm btn-info" href="/Shop/index/" title="商品管理">
			<i class="fa fa-shopping-bag"></i>
		</a>
		<a class="btn btn-sm btn-danger" href="/Store/info/" title="店铺管理">
			<i class="fa fa-users"></i>
		</a>
		<a class="btn btn-sm btn-danger" href="/Order/order_list/" title="订单管理">
			<i class="fa fa-bars"></i>
		</a>
		<a class="btn btn-sm btn-default" href="/Shop/evaluate/" title="后台菜单">
			<i class="fa fa-commenting"></i>
		</a>

	</div>
	<ul class="nav nav-list">
		
		<volist name="menuArray" id="row" key="k" >
			<?PHP 
		
				$module=CONTROLLER_NAME;
			?>
			
			<li <eq name="row['module']" value="$module">class="active open"</eq> data="{$module}" data2="{$row['module']}">
				<a href="javascript:;" class="dropdown-toggle">
					<php>if($row['icon']){</php>
						<i class="fa {$row['icon']}" style="font-size: 16px;margin-right: 5px;width: 13px;text-align: center;"></i>
					<php>}else{</php>
						<img src="{$row['UpFilePathInfo']}" style="width: 20px;margin-right: 8px;">
					<php>}</php>
				
					<span class="menu-text">{$row['name']}</span> <b class="arrow icon-angle-down"></b> </a>
				<ul class="submenu">
					<volist name="row.sub" id="row1">
						<?PHP 
						
						$actionname	=	preg_replace('/list|add|save|delete/','',strtolower($row1['action']));
						if( $row1['ishidden'] == '1' || ( $userArray['isadmin'] != '1' && !($jsonArray[$row['module']][strtolower($row1['action'])] || $jsonArray[$row['module']][$row1['action']] ) && !$jsonArray[$row['module']][$actionname] && $row1['isDefault'] == '0' ) ){ continue; }?>
						
						<li <if condition="ACTION_NAME eq $row1['action']">class="active"</if>> <a href="/{$row1['module']}/{$row1['action']}/"><i > </i><span>{$row1['name']}</span></a> </li>
					</volist>
				</ul>
			</li>
		</volist>
	</ul>
	<!-- /.nav-list -->
	
	<!--<div class="sidebar-collapse" id="sidebar-collapse"> <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i> </div>
	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
		$(function(){
			$('.scrollbarLeft').height($(window).height() - 45);
			$(window).load(function(){
				$(".scrollbarLeft").mCustomScrollbar({autoHideScrollbar:true});
			});
		});
	</script> -->
</div>
